package com.woniuxy.book.exception.userinfo;

public enum UserInfoExceptionCode {
    USER_INFO_EXCEPTION_USER_PHONE_EXISTS(40001,"该号码已注册"),
    USER_INFO_EXCEPTION_REPEAT_SEND_ONEMINUTE(40002,"一分钟内不能重复发送短信"),
    USER_INFO_EXCEPTION_FIVE_SEND_ONHOUR(40003,"一小时内只能发送五次短信"),
    USER_INFO_EXCEPTION_CODE_ERROR(40004,"验证码错误请重新输入"),
    USER_INFO_EXCEPTION_CODE_OUTDATE(40005,"验证码过期，请重新发送(或未发送验证码)"),
    USER_INFO_EXCEPTION_USER_PHONE_NOREGIST(40006,"该手机号码未注册请先注册"),
    USER_INFO_EXCEPTION_USER_USERNAME_EXISTS(40007,"该用户名已注册"),
    USER_INFO_EXCEPTION_USER_NOREGISTER(40008,"该账号未注册 请先注册"),
    USER_INFO_EXCEPTION_PASSWORD_ERROR(40009,"密码有误请重新输入");
    private Integer code;
    private String message;

    UserInfoExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
